<?php
if ( !defined( "IN_OP" ) )
{
    exit( "You can't access this file directly..." );
}
$ui = new UI();
include( "admin_menu.php" );
if ( isset( $_POST['id'] ) )
{
    $id = intval( $_POST['id'] );
    if ( $id == 0 )
    {
        echo "错误的数值！";
        exit();
    }
    echo "数值[ ".$id." ]转换日期时间为[ ".date( "Y-m-d H:i:s", $id )."] ";
    echo " <input type=button value='清除' onclick='history.back()'>";
}
else
{
    echo "<font color=red><b>日期时间转换</b></font><br>";
    echo "<form action=\"op.php?op=admin&fp=dttest\" method=post onsubmit=\"this.submit.disabled=true;this.reset.disabled=true\">";
    echo "请输入要转换的数值：<input name=id> ";
    echo " <input type=submit value='确定'>";
    echo "</form>";
}
?>